package org.xxpay.manage.merchant.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import org.xxpay.core.entity.MchAccount;
import org.xxpay.manage.common.service.RpcCommonService;

import java.util.List;

/**
 * 时间  2024/1/23 15:30
 * 作者 Ctrlcv工程师  在线面对百度编程
 */
@Component
public class MchAccountService {
    @Autowired
    private RpcCommonService rpcCommonService;

    public List<MchAccount> getAllAccount(int offset, int limit) {
        final List<MchAccount> mchAccounts = rpcCommonService.rpcMchAccountService.listAll(offset, limit);
        return mchAccounts;
    }
}
